package com.baizhi.dao;

import com.baizhi.entity.Banner;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BannerDao {
    public List<Banner> selectAll(@Param("offset")int offset,@Param("limit") int limit);

    public int selectCount(@Param("bannerOldName") String bannerOldName);

    public int update(Banner banner);

    public int updatea(Banner banner);

    public int insert(Banner banner);

    public int delete(int id);

    public Banner selectOne(int id);

    //更改图片状态
    public int updates(Banner banner);



    //批量下载方法
    public List selectAlls();
}
